using System; 
using System.IO; 
using Xtee.Core.Envelope;
using Xtee.XteeAdapter.Doc;
using System.Collections.Generic;
using Doc.Xroad.Eu.Headers;
using Doc.Xroad.Eu.Messages;
using Xtee.Core.Envelope.Header;

namespace Server_HandlesAttachmentInMemory.Services
{
    public class AddDocumentService : AddDocumentServiceHandler
    {
        public static Dictionary<string, byte[]> PictureDataBase = new Dictionary<string, byte[]>();
        public AddDocumentResponse ProcessRequest(AddDocumentRequest input, AddDocumentInputHeader header)
        {
            PictureDataBase[input.Document.Name] = input.Document.Sisu.AllBytes();
            return new AddDocumentResponse();

        }
    }
    
}
